<template>
  <el-card>
    <el-row :gutter="20">
      <el-col :span="6">
        <el-button type="primary" @click="addItemHandler()"> 添加 </el-button>
      </el-col>
    </el-row>
  </el-card>
</template>

<script setup lang="ts">
const emit = defineEmits<{
  (e: 'addItemHandler'): void
}>()
const addItemHandler = () => {
  emit('addItemHandler')
}
</script>

<style></style>
